import java.util.Arrays;
import java.util.List;
import static java.util.stream.Collectors.toList;
public class haihai {

    public static void main(String[] args) {
        List<Dish> menu= Arrays.asList(
                new Dish("老人与海",21),
                new Dish("三国演义",120),
                new Dish("水浒传",127),
                new Dish("西游记",101),
                new Dish("红楼梦",67),
                new Dish("格林童话",90),
                new Dish("钢铁是怎样炼成的",88));

        List<String> lowCaloriesDishName=menu.stream()
                .filter(d->d.getCalories()>100)
                .sorted((d1,d2)->d1.getCalories()-d2.getCalories())
                .map(d->d.getName())
                .collect(toList());

        for(String name:lowCaloriesDishName)
            System.out.println(name);
    }
}


